package com.patterns.demo.proxy;

/**
 * Author: SamGroves
 * <p>
 * Description: 代理类
 * <p>
 * Date: 2017/11/29
 */
public class Proxy implements Sourceable {

    @Override
    public void method() {

        // 调用需要被代理的方法
        Source source = new Source();
        source.method();
        proxy();
    }

    public void proxy() {
        System.out.println("after proxy");
    }
}
